<tagLib name="lbase"/>
<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <title>微信公众平台营销管理系统</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
    <include file='Public:header' />
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="__ROOT__/public/js/html5shiv.js"></script>
    <![endif]-->
</head>

<body>
    <!--nav-->
<include file='Public:nav' />

<div class="container">
    <div class="page-header"><h4>查看服务器当前生效自定义菜单</h4></div>
    <div class="row">
        <div class="span12">
            <div class="pull-left">
                <a href="{:U('/'.$module_name)}" class="btn btn-primary">列 表</a>&nbsp;&nbsp;
                <a class="btn btn-primary" href="{$pre_url}">返 回</a>
            </div>
        </div>
    </div>
    <div class="row">
        <style type="text/css">
            li{list-style: none;height: 30px;}
            li span{margin-left: 20px}
            li.submenu{margin-left: 25px;}
        </style>
        <div class="span12" style="margin-top:10px;">
            <php>
                if(!is_null($data['errcode'])){
                    echo $data['errcode'].':'.$data['errmsg'];
                }
            </php>
            <ul>
                <php>
                    foreach($data['menu']['button'] as $key=>$value){
                        echo '<li><b>'.$value['name'].'</b>';
                        if(!is_null($value['key'])) echo '<span>KEY:'.$value['key'].'</span>';
                        echo '</li>';
                        foreach($value['sub_button'] as $key_sub=>$value_sub){
                            echo '<li class="submenu">'.$value_sub['name'].'<span>KEY:'.$value_sub['key'].'</span></li>';
                        }
                    }
                </php>
            </ul>
        </div>
    </div>
</div>
</div>
<include file='Public:footer' />
<script type="text/javascript" src="__PUBLIC__/js/add_none_editor.js"></script>
</body>
</html>
